package com.yunkeji.dao.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.yunkeji.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 动态对象 ykj_moments
 *
 * @author 老张
 * @date 2024-05-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "ykj_moments", autoResultMap = true)
public class Moments extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    @TableId(value = "id")
    private Long id;
    /** 用户ID */
    private Long userId;
    /** 性别 */
    private Integer sex;
    /** 内容 */
    private String content;
    /** 图片 */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> pics;
    /** 点赞数 */
    private Long likeNum;
    /** 回复数 */
    private Long replyNum;
    /** 发布城市ID */
    private Long cityId;
    /** 发布省份ID */
    private Long provinceId;
    /** 爱洞ID */
    private Long platformId;
    /** 1待审核2审核通过3审核拒绝 */
    private Integer status;
}
